package com.hyz.controller.repositoryManager;

import com.hyz.client.AssetClient;
import com.hyz.service.repositoryManager.RepositoryManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pojo.ResponseResult;
import pojo.assetInbound.AssetInbound;
import pojo.reposiroty.Repository;

import java.util.List;

/**
 * @author HGD
 * @date 2022/10/1 20:45
 */
@RestController
@RequestMapping("/repositoryManager")
public class RepositoryManagerController {
    @Autowired
    private RepositoryManagerService repositoryManagerService;

    //--------------------------资产分库-------------------------------
    /*
     * 1. 根据用户id查看仓库列表
     * 2. 根据仓库id查看分库申请
     * 3. 审批分库申请
     * */

    /**
     * 查看分库申请
     *
     * @return 获取所有分库申请
     */
    @PostMapping("/getAssetInbound")
    ResponseResult<List<AssetInbound>> getAssetInbound() {
        return repositoryManagerService.getAssetInbound();
    }

    // TODO: 审批分库申请，通过申请id找到对应审批表


    //--------------------------资产出库-------------------------------
    // TODO: 查看出库申请

    // TODO: 审批出库申请

    //--------------------------资产入库-------------------------------
    // TODO: 查看入库申请

    // TODO: 审批入库申请
    //--------------------------资产盘点-------------------------------
    // TODO: 资产盘点
}
